var Activity = {
  editProperty : function(activity_id, property_name, property_value) {
    $.ajax({
      url : "/activity/edit_property?id=" + activity_id +
        "&property_name=" + property_name + "&property_value=" + property_value,
      type : "post",
      success : function() {
//        alert("success!");
      }
    });
  },
  createChild : function(activity_id, child_kind, child_value) {
    $.ajax({
      url : "/activity/create_child?id=" + activity_id +
        "&child_kind=" + child_kind + "&child_value=" + child_value,
      type : "post",
      success : function() {
//        alert("success!");
      }
    });
  },
  removeChildren : function(activity_id, child_kind) {
    $.ajax({
      url : "/activity/remove_children?id=" + activity_id +
        "&child_kind=" + child_kind,
      type : "post",
      success : function() {
//        alert("success!");
      }
    });
  }
};